package com.wr.online.test.model.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 *  全局逻辑异常
 */

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    //参数校验
    BIND_ERROR(500212,"参数校验异常"),
    //手机格式错误
    ILLEGAL_PHONE(500213,"手机号码格式错误"),

    //"找不到试卷或试卷已被提交"
    PAPER_NOT_FOUND(500214,"找不到试卷或试卷已被提交"),

    //"试卷已被提交"
    PAPER_HAS_BEEN_OVERDUE(500215,"试卷已经过期了"),

    //
    EARLY_TIME(500216,"试卷开没有开卷哦")



    ;

    private Integer code;
    private String msg;



}
